/**
 * Author: Dmitry Ustimov
 * Date: 5/15/13
 * Time: 10:26 AM
 */

package com.gmail.dmitryustimov.ms.java7.mediator.mod.example;

public class Demo {

    public static void main(String[] args) {

        Mediator<Colleague> mediator = new Mediator<>();
        Colleague colleague1 = new Colleague1("c1", mediator);
        Colleague colleague22 = new Colleague2("c22", mediator);
        Colleague colleague23 = new Colleague2("c23", mediator);

        mediator.addColleague(colleague1);
        mediator.addColleague(colleague22);
        mediator.addColleague(colleague23);

        colleague1.change();
        colleague22.change();
        colleague23.change();
    }

}
